import request from '@/utils/request'

export function getApplications(query) {
  return request({
    url: '/program/application/getList',
    method: 'post',
    data: query
  })
}

export function getApplicationSubscribe(data){
  return request({
    url: '/program/application/getSubscribeList',
    method: 'post',
    data:data
  })
}
export function getApplicationByUsable(data) {
  return request({
    url: '/program/application/getUsableList',
    method: 'post',
    data:data
  })
}
export function getApplicationByCompany(data) {
  return request({
    url: '/program/application/getCompanyList',
    method: 'post',
    data:data
  })
}

export function getApplication(id) {
  return request({
    url: '/program/application/getDetail',
    method: 'post',
    data: id
  })
}

export function saveApplication(id) {
  return request({
    url: '/program/application/save',
    method: 'post',
    data: id
  })
}

export function removeApplicationByID(id) {
  return request({
    url: '/program/application/delete',
    method: 'post',
    data: id
  })
}

export function changeApplicationStatusByID(formdata) {
  return request({
    url: '/program/application/change-status',
    method: 'post',
    data: formdata
  })
}

